<?php
	$mdlUser = new ObjData2(TBL_PREFIX.'users');
	// Cac field hien thi tren form nhap
	$mdlUser->arrInputFields = array('username', 'name', 'pass', 'groupid');
	// Map cac field voi ten cua doi tuong
	$mdlUser->arrFieldsMap = array('username'=>'txtUid', 'name'=>'txtRName');
	//Cac field bat buoc phai nhap
	$mdlUser->arrRequired = array('username'=>1, 'pass'=>1);
	// Cac field can validate
	$mdlUser->arrValidator = array('ussername'=>'Name');
	// Dieu chinh cac tieu de
	$mdlUser->arrCaptions = array('username'=>'Tên truy cập', 'name'=>'Họ tên', 'pass'=>'Mật khẩu', 'groupid'=>'Nhóm');
	// Cac o nhap khong phai la textbox
	$mdlUser->arrInput = array('groupid'=>'combobox', 'pass'=>'password');
	// Gia tri cho cac o nhap la combobox
	$mdlUser->arrFieldData['groupid'] = $arrGroupName;
